<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class AddColumnExcludeFilesToRepoSettings extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('repo_settings', function (Blueprint $table) {
            $table->text('exclude_files')->after('last_sha_id')->comment('rsync 时要忽略的文件，\r\n分割');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('repo_settings', function (Blueprint $table) {
            $table->dropColumn('exclude_files');
        });
    }
}
